classdef InstrumentWindow < handle
    %%INSTRUMENTWINDOW Dooku Synthesizer Instrument window GUI class
    properties
        % Figure variables
        hfig;
        handles;
    end
    
    properties (SetObservable)
        finish;
    end
    
    methods
        
        function obj = InstrumentWindow
            % Figure Load
            obj.hfig = hgload('instrumentGUI.fig');
            obj.handles = guihandles(obj.hfig);
            
            % Callbacks Definitions
            set(obj.handles.instrumentWindow, 'CloseRequestFcn', @(src, event) finishSelect(obj, src, event));
            
            obj.defaultVariables();
        end
        
        function defaultVariables(obj)
            
        end
        
        function visible(obj)
            set(obj.hfig, 'Visible', 'on');
            set(obj.hfig, 'Windowstyle', 'modal');
        end
        
        function loadData(obj, instrumentData)
            
        end
        
        function instrumentData = saveData(obj)
            
        end
        
        
        function refreshInstrument(obj)
            
        end
        
        function obj = finishSelect(obj, ~, ~)
            obj.finish = 1;
            set(obj.hfig, 'Visible', 'off');
            set(obj.hfig, 'Windowstyle', 'normal');
        end
        
    end
    
end
            